package com.liuyingxing.javaSpringCloudAccount.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.liuyingxing.entity.account.Role;
import com.liuyingxing.entity.common.Result;
import com.liuyingxing.entity.common.SearchBean;


/**
 * Created by IntelliJ IDEA.
 * @File RoleService.java
 * @Auth liuxing
 * @Date 2021/8/23 16:42
 * @Email liuxing997@foxmail.com
 */
public interface RoleService {

	//插入角色信息
	Result<Role> insertRole(Role role);

	//更新角色信息
	Result<Role> updateRole(Role role);

	//删除角色信息
	Result<Object> deleteRoelById(int id);

	//根据ID获取角色信息
	Role getRoleById(int id);

	//根据用户ID查询角色信息
	List<Role> getRolesByUserId(int userId);

	//获取所有角色信息
	List<Role> getRoles();

	//分页查询角色信息
	PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
